package org.dfl.core.model.listeners;

import org.dfl.core.model.Place;

/**
 * listener for a place data date
 * @author Piotr Wlodarczyk
 *
 */
public interface PlaceListener {
	/**
	 * fired in a place when token was added
	 * @param place - place when token was added
	 */
	public void tokenAdded(Place place);
	
	/**
	 * fired when token is removed
	 * @param place - place where token was removed
	 * @param historiesLeft - how much tokens left
	 */
	public void tokenRemoved(Place place, int historiesLeft);
}
